extends TimeLord

var blinker = Blinker.new("ENTER - bonus level")

func _init():
	blinker.V_OFFSET = 20

func _ready():
	$MASTER_FADER.fade_out()
	add_child(blinker)

func _input(event):
	if listening:
		if event.is_action_pressed("ui_accept"):
			$MASTER_FADER.fade_in()
#			execute_after($MASTER_FADER.FADE_ANITIME,"_fadeout")
#			execute_after($MASTER_FADER.FADE_ANITIME*2,"reset_")
			execute_after($MASTER_FADER.FADE_ANITIME,"reset_")

func _fadeout():
	$BG2.visible = true
	$MASTER_FADER.fade_out()

func reset_():
	get_tree().change_scene("res://BONUS_GRID.tscn")
